using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEditorInternal.Profiling.Memory.Experimental;
using UnityEngine;
using static System.Net.WebRequestMethods;

public class 物品删除 : MonoBehaviour
{
    public TMP_InputField id;
    public TMP_InputField itemcnt;
    public fastbackpack fbp;
    void Start()
    {
        
    }
    public void removeitem()
    {
        int cnt=-1;
        int.TryParse(itemcnt.text, out cnt);
        Tuple<string, int> a = new Tuple<string, int>(id.text , cnt );
        Destroy(fbp.BPUnit[a]);
        fbp.BPUnit.Remove(a);
        物品管理器.SingleItemManage.ItemDictionary[id.text].Remove(cnt);
    }
}
